<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>

	<body>
		<form action="链接" id="form1" method="post" style="text-align:center;" enctype="multipart/form-data">
			<input type="file" id="file_sc" name="file" accept=".xls,.xlsx"><br/> 提交人：
			<input type="text" id="name" name="name"><br/>
			<input type="submit" id="tj" value="提交">
		</form>
	</body>
	<script src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jqform.js" ></script>
	<script>
	$(function(){  
    /** 验证文件是否导入成功  */  
    $("#form1").ajaxForm(function(data){    
        if(data=="1"){  
            alert("提交成功！");     
        }  
    });       
}); 
	</script>

</html>